Add backend refinements, new API tests, and fix flaky tests#795
Merged
Add backend refinements, new API tests, and fix flaky tests#795
Conversation
… SharedDependencyConfiguration
…ions and move FakerExtensions to SharedKernel
…elBuilderExtensions
5c5b8ea to
0b6373c
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary & Motivation
Add SharedKernel improvements, new API tests, and fix flaky tests caused by non-deterministic test data.
StronglyTypedString<T>base class for creating string-based strongly typed IDs with optional prefix validation (Stripe-style IDs likecus_abc123).IBlobStorageClientinterface to enable mocking and improve testability.Result.Redirect()and correspondingApiResultsupport for HTTP redirects.IBulkAddRepository<T>andIBulkUpdateRepository<T>, and renameBulkRemovetoRemoveRangefor consistency with EF Core naming.AddRangeAsync,UpdateRange, andRemoveRangemethods toRepositoryBase.MapStronglyTypedStringandOwnedNavigationBuilderoverloads toModelBuilderExtensionsfor EF Core mapping of owned entities.CreateContainerIfNotExistsAsync,DeleteIfExistsAsync, and User Delegation Key SAS support toBlobStorageClient.UseStringForEnumsto handle nullable enum properties.MailAddress.TryCreateinstead of custom regex rules.AddCrossServiceDataProtectionfromApiDependencyConfigurationtoSharedDependencyConfiguration.NotSupportedExceptionwhen copying avatar during tenant switch by buffering Azure's non-seekable stream.Logout,ChangeLocale, andChangeUserRolecommands.Faker.Internet.UniqueEmail()to prevent email collisions when tests run in parallel.Faker.Random.String2()instead ofString()to avoid whitespace trimming issues.Downstream projects
BlobStorageClientusage to use theIBlobStorageClientinterface:BulkRemovetoRemoveRangein repositories:Checklist